package com.juc.forkJoinPool.forkJoinPool1;

import java.util.concurrent.ForkJoinPool;
import java.util.concurrent.ForkJoinTask;

public class Run {

	//public void execute(ForkJoinTask<?> task) 
	//execute()方法可以异步的方式执行任务 execute(ForkJoinTask<?> task)
	public static void main(String[] args) throws InterruptedException {
		ForkJoinPool pool = new ForkJoinPool();
		pool.execute(new MyrecursiveAction());
		Thread.sleep(5000);
	}
}
